package cn.yitun.chat.yitunservercommonlib.converter.dto2po.file;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.UserHeadDataDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.UserHeadDataInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 加好友回复
 */
@Mapper(componentModel = "spring")
public interface UserHeadDataDto2PoConverter {

    UserHeadDataDto2PoConverter INSTANCE = Mappers.getMapper(UserHeadDataDto2PoConverter.class);

    UserHeadDataDto do2dto(UserHeadDataInfo info);

    List<UserHeadDataDto> do2dto(List<UserHeadDataInfo> doList);

    @InheritInverseConfiguration
    UserHeadDataInfo dto2do(UserHeadDataDto dto);
    @InheritInverseConfiguration
    List<UserHeadDataInfo> dto2do(List<UserHeadDataDto> dtoList);

}
